﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CL.Business.Entity;
using System.IO;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using CL.Enum.Common.Union;
using CL.Business.BLL;

namespace CL.UnionWeb.union
{
    public partial class MyAccount : BasePage
    {
        public static AccountEntity un_Entity = new AccountEntity();
        protected string tipMsg = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "推广联盟-我的账户";
            un_Entity = base.GetUnionInfo();

            if ((int)AccountStatusEnum.certification == un_Entity.AccountStatus)
                tipMsg = "资料审核中,请稍等.";
            else if ((int)AccountStatusEnum.toBeAudited == un_Entity.AccountStatus)
                tipMsg = "资料待审核, 请上传身份证和银行卡资料";
            else if ((int)AccountStatusEnum.noPass == un_Entity.AccountStatus)
                tipMsg = "审核未通过, 请重新上传身份证和银行卡资料";

            new RecordBLL().InsertEntity(new Business.Entity.RecordEntity()
            {
                AccountID = un_Entity.AccountID,
                RecordTime = DateTime.Now,
                RecordRemark = string.Format("查看我的账户"),
                RecordType = 6
            });
        }
       
    }
}

